package com.kitty.game.equip.handler;

import com.kitty.game.equip.model.RoleEquip;
import com.kitty.game.config.Equip;
import org.springframework.stereotype.Component;

import java.util.List;
import com.kitty.game.equip.handler.RefineHandler;

/**
 * 炼化粉属性
 */
@Component("EquipRefinePink")
public class EquipRefinePinkHandler extends RefineHandler {
    /**炼化之后装备的颜色*/
    private static final String THIS_COLOR = "粉色";
    /**会被修改的颜色*/
    private static final String BEFORE_COLOR = "蓝色";
    /**炼化需要的水晶*/
    private static final String CRYSTAL_NAME = "超级粉水晶";
    /**炼化属性的FIELDID*/
    private static final short THIS_FIELDID = 770;
    /**不能跟什么属性重复*/
    private static final short DIFF_FIELDID = 1026;
    /**预览炼化属性的FIELDID*/
    private static final short PRE_THIS_FIELDID = 5890;

    @Override
    public String getOperStr(){
        return "炼化粉属性";
    }

    @Override
    public String getCrystal(){
        return CRYSTAL_NAME;
    }

    @Override
    protected void addSuitFixedField(int fixedField, RoleEquip roleEquip, Equip equip, int polor) {

    }

    @Override
    public List<Integer> getSuitFieldId(int pos ,int polar) {
        return null;
    }

    @Override
    public short getPreField(){
        return PRE_THIS_FIELDID;
    }
    @Override
    public short  getField(){
        return THIS_FIELDID;
    }

    @Override
    public short getSuitField() {
        return 0;
    }

    @Override
    public short getPreSuitField() {
        return 0;
    }

    @Override
    public String getBeforeColor(){
        return BEFORE_COLOR;
    }
    @Override
    public String getThisColor(){
        return THIS_COLOR;
    }

    @Override
    public Short getDiffField() {
        return DIFF_FIELDID;
    }

    @Override
    public int needCash(short level, int pos) {
        return level < 70 ? 0 : level * level * 16 + 5000;
    }

    @Override
    public String getUpdateTypeStr() {
        return "pink_refine";
    }

}
